import request from '@/utils/request'

// 智书列表
export function wisdbookLists(params?: Record<string, any>) {
    return request.get({ url: '/wisdbook/list', params })
}

// 智书详情
export function wisdbookDetail(params: Record<string, any>) {
    return request.get({ url: '/wisdbook/detail', params })
}

// 智书新增
export function wisdbookAdd(params: Record<string, any>) {
    return request.post({ url: '/wisdbook/add', params })
}

// 智书编辑
export function wisdbookEdit(params: Record<string, any>) {
    return request.post({ url: '/wisdbook/edit', params })
}

// 智书删除
export function wisdbookDelete(params: Record<string, any>) {
    return request.post({ url: '/wisdbook/del', params })
}


// 标记任务列表
export function userLists(params?: Record<string, any>) {
    return request.get({ url: '/wisdbook/user/list', params })
}

// 标记任务详情
export function userDetail(params: Record<string, any>) {
    return request.get({ url: '/wisdbook/user/detail', params })
}

// 标记任务新增
export function userAdd(params: Record<string, any>) {
    return request.post({ url: '/wisdbook/user/add', params })
}

// 标记任务编辑
export function userEdit(params: Record<string, any>) {
    return request.post({ url: '/wisdbook/user/edit', params })
}

// 标记任务删除
export function userDelete(params: Record<string, any>) {
    return request.post({ url: '/wisdbook/user/del', params })
}
//获取书籍标记人员
export function getMarkerUserWithBookId(params: Record<string, any>) {
    return request.get({ url: '/wisdbook/user/getMarkerUserWithBookId', params })
}

// 系统管理成员列表
export function adminLists(params?: Record<string, any>) {
    return request.get({ url: '/system/admin/list', params })
}
// 标记编辑选择列表
export function orderUserSelect(params?: Record<string, any>) {
    return request.get({ url: '/wisdbook/user/select', params })
}

//
export function listByUser(params?: Record<string, any>) {
    return request.get({ url: '/wisdbook/user/listByUser', params })
}